package com.jsy.mini12306.ticketsales.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jsy.mini12306.common.entity.SeatType;
import com.jsy.mini12306.common.entity.Ticket;
import com.jsy.mini12306.ticketsales.bo.DrivingPlan;
import com.jsy.mini12306.ticketsales.exception.TicketSaleCoreException;
import com.jsy.mini12306.ticketsales.vo.TicketOrderVO;

import java.util.Map;

/**
 * 票价(Ticket)表服务接口
 *
 * @author: SongyangJi
 * @since: 2021-09-03 19:25:59
 * @description:
 */

public interface TicketService extends IService<Ticket> {

    Map<SeatType,Float> queryTicketPriceByDrivingPlan(DrivingPlan drivingPlan);


    boolean processTicketOrder(TicketOrderVO ticketOrderVO) throws TicketSaleCoreException;

}
